package com.traval.goods.models;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * TPlaneticket entity. @author MyEclipse Persistence Tools
 */

public class TPlaneticket implements java.io.Serializable {

	// Fields

	private Integer pid;
	private String flightNumber;
	private String planeName;
	private String startPlace;
	private String destination;
	private Timestamp departure;
	private Timestamp ariveTime;
	private Double price;
	private String seatNumber;
	private Set<TGoods> TGoodses = new HashSet<TGoods>();

	// Constructors

	/** default constructor */
	public TPlaneticket() {
	}

	/** minimal constructor */
	public TPlaneticket(String flightNumber, String planeName, String startPlace, String destination,
			Timestamp departure, Timestamp ariveTime, Double price, String seatNumber) {
		this.flightNumber = flightNumber;
		this.planeName = planeName;
		this.startPlace = startPlace;
		this.destination = destination;
		this.departure = departure;
		this.ariveTime = ariveTime;
		this.price = price;
		this.seatNumber = seatNumber;
	}

	/** full constructor */
	public TPlaneticket(String flightNumber, String planeName, String startPlace, String destination,
			Timestamp departure, Timestamp ariveTime, Double price, String seatNumber, Set TGoodses) {
		this.flightNumber = flightNumber;
		this.planeName = planeName;
		this.startPlace = startPlace;
		this.destination = destination;
		this.departure = departure;
		this.ariveTime = ariveTime;
		this.price = price;
		this.seatNumber = seatNumber;
		this.TGoodses = TGoodses;
	}

	// Property accessors

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getFlightNumber() {
		return this.flightNumber;
	}

	public void setFlightNumber(String flightNumber) {
		this.flightNumber = flightNumber;
	}

	public String getPlaneName() {
		return this.planeName;
	}

	public void setPlaneName(String planeName) {
		this.planeName = planeName;
	}

	public String getStartPlace() {
		return this.startPlace;
	}

	public void setStartPlace(String startPlace) {
		this.startPlace = startPlace;
	}

	public String getDestination() {
		return this.destination;
	}

	public void setDestination(String destination) {
		this.destination = destination;
	}

	public Timestamp getDeparture() {
		return this.departure;
	}

	public void setDeparture(Timestamp departure) {
		this.departure = departure;
	}

	public Timestamp getAriveTime() {
		return this.ariveTime;
	}

	public void setAriveTime(Timestamp ariveTime) {
		this.ariveTime = ariveTime;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public String getSeatNumber() {
		return this.seatNumber;
	}

	public void setSeatNumber(String seatNumber) {
		this.seatNumber = seatNumber;
	}

	public Set getTGoodses() {
		return this.TGoodses;
	}

	public void setTGoodses(Set TGoodses) {
		this.TGoodses = TGoodses;
	}

}